
#include <iostream>

#include "../inc/CpnCaptureInterface.h"

void main()
{
	std::cout<<"Hello World!"<<std::endl;

	std::cout<<"Acquire 99 frames and stop as a start!"<<std::endl;
	try
	{
		CpnCaptureInterface captureImg;
		captureImg.InitCam(0);
		
		for(int i=0; i<99; ++i)
		{
			captureImg.getMostRecentFrame();
		}

	}
	catch(std::exception & err)
	{
		std::cout<<"an exception occured: "<<err.what()<<std::endl;
	}

	std::cout<<"Press any key to quit"<<std::endl;
	//Just wait a input
	int a=0;
	std::cin>>a;
}